﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/template/common/include/top.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META HTTP-EQUIV="Refresh" CONTENT="300">
<body leftmargin="0px"  background="../images/topbg.gif" rightmargin="0px" topmargin="0px" bottommargin="0px" onload="startclock();">
<LINK href="../css/def.css" rel=stylesheet>
<table width="100%" style="margin-top:5px "><tr><td>
当前用户为&nbsp;&nbsp;<font color="#000000"><b>${loginuser.name}</b></font>[<a href="#" onclick="top.location='<%=path%>/sys/sys.do?op=logout'">注销</a>]</td><c:if test="${not empty lefttime }"><td><font color=red><b>软件将在${lefttime/30 }小时后到期，请注意及时购买</b></font></td></c:if><td></td><td align="right"><a href="#" onclick="top.location.href='../../main.jsp'">首页</a> | <a onclick="top.main.src='<%=path%>/howtobuy.jsp'" href="<%=path%>/howtobuy.jsp" target="main">如何购买</a> | <a href="<%=path%>/help.jsp" target="main">帮助</a>&nbsp;&nbsp;&nbsp;<span id="ClockArea">&nbsp;</span><td></tr></table>


<SCRIPT language="JavaScript">
	  var timerID = null;
	  var timerRunning = false;
	  function stopclock(){
		  if(timerRunning)
			  clearTimeout(timerID);
		  timerRunning = false;
	  }

	  function startclock(){
		  stopclock();
		  showtime();
	  }

	  function showtime(){
		  var now = new Date();
		  var year=now.getYear();
		  var month=now.getMonth()+1;
		  var date=now.getDate();
		  var hours = now.getHours();
		  var minutes = now.getMinutes();
		  var seconds = now.getSeconds();
		  var timeValue = year+"年"+month+"月"+date+ "日 "+hours;
		  timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
		  timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
 		  if (now.getDay() == 5) timeValue=timeValue+" 星期五";
		  if (now.getDay() == 6) timeValue=timeValue+" 星期六";
		  if (now.getDay() == 0) timeValue=timeValue+" 星期日";
		  if (now.getDay() == 1) timeValue=timeValue+" 星期一";
		  if (now.getDay() == 2) timeValue=timeValue+" 星期二";
		  if (now.getDay() == 3) timeValue=timeValue+" 星期三";
		  if (now.getDay() == 4) timeValue=timeValue+" 星期四";
		  document.getElementById('ClockArea').innerText = timeValue ;
		  timerID = setTimeout("showtime()",1000);
		  timerRunning = true;
	  }
	  </SCRIPT>
	   
	   
</body>